import { getCurrentInstance } from 'vue'
import type { NotificationMethod } from '@arco-design/web-vue'

export function useNotification(): { Notification: NotificationMethod } {
  const notification = getCurrentInstance()!.appContext.config.globalProperties.$notify
  return {
    Notification: notification
  }
}
